/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class ShowinfoIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public ShowinfoIndexFiles()
/*    */   {
/* 20 */     this.properUtil = new ProperUtil();
/* 21 */     this.file_path = this.properUtil.getFilePathByModel("showinfo");
/*    */   }
/*    */ 
/*    */   public List getShowinfoList(Map paraMap) throws IOException {
/* 25 */     ArrayList showList = new ArrayList();
/* 26 */     SearchData search = new SearchData();
/* 27 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 29 */     String title = ""; String keyword = ""; String in_date = ""; String class_attr = ""; String area_attr = ""; String open_start_dates = ""; String open_end_dates = ""; String show_addrs = "";
/* 30 */     String order_by = "edit_date";
/* 31 */     if (paraMap.get("title") != null) title = paraMap.get("title").toString();
/* 32 */     if (paraMap.get("order_by") != null) order_by = paraMap.get("order_by").toString();
/* 33 */     if (paraMap.get("keyword") != null) keyword = paraMap.get("keyword").toString();
/* 34 */     if (paraMap.get("class_attr") != null) class_attr = paraMap.get("class_attr").toString();
/* 35 */     if (paraMap.get("area_attr") != null) area_attr = paraMap.get("area_attr").toString();
/* 36 */     if (paraMap.get("open_start_dates") != null) open_start_dates = paraMap.get("open_start_dates").toString();
/* 37 */     if (paraMap.get("open_end_dates") != null) open_end_dates = paraMap.get("open_end_dates").toString();
/* 38 */     if (paraMap.get("show_addrs") != null) show_addrs = paraMap.get("show_addrs").toString();
/* 39 */     if (paraMap.get("in_date") != null) in_date = paraMap.get("in_date").toString();
/* 40 */     Queue queue = new Queue(new QueueValue[] { new QueueValue(order_by, 2, true) });
/*    */ 
/* 42 */     paraList.add(new SearchModel("0", "class_attr", class_attr));
/* 43 */     paraList.add(new SearchModel("0", "area_attr", area_attr));
/* 44 */     paraList.add(new SearchModel("0", "title", title));
/* 45 */     paraList.add(new SearchModel("2", keyword, new String[] { "title", "keyword" }));
/* 46 */     paraList.add(new SearchModel("1", "in_date", in_date));
/* 47 */     showList = search.getSearchInfo(this.file_path, paraList, queue);
/* 48 */     return showList;
/*    */   }
/*    */ 
/*    */   public ArrayList getShowInfo(String cat_id, String area_code, String keyword, String show_type, String search_date) throws IOException
/*    */   {
/* 53 */     ArrayList showList = new ArrayList();
/* 54 */     SearchData search = new SearchData();
/* 55 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 57 */     Queue queue = new Queue(new QueueValue[] { new QueueValue("show_type", 2, true), new QueueValue("show_id", 2, true) });
/* 58 */     paraList.add(new SearchModel("0", "class_attr", cat_id));
/* 59 */     paraList.add(new SearchModel("0", "area_attr", area_code));
/* 60 */     paraList.add(new SearchModel("1", "in_date", search_date));
/* 61 */     paraList.add(new SearchModel("2", keyword, new String[] { "title", "content" }));
/* 62 */     showList = search.getSearchInfo(this.file_path, paraList, queue);
/* 63 */     return showList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.ShowinfoIndexFiles
 * JD-Core Version:    0.6.0
 */